import axios from "axios";



const studentLeaveHistory = async (getData) =>{

    let params = {

        page: getData.page,
        limit: getData.size,
        major_id : getData.major_id,
        grade : getData.grade,
        class_name : getData.class_name
    }

    let response = await axios.get(`/select/self-students-leave`,{
        params: params
    });

    if (response.status == 200 ){
        return response.data;
    }else{
        return 'error'
    }

}


export default studentLeaveHistory;